.class public Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;
.super Landroid/widget/GridView;


# instance fields
.field private A:I

.field private B:Ljava/lang/String;

.field public a:I

.field public b:I

.field public c:I

.field public d:I

.field e:I

.field f:I

.field public g:I

.field private h:I

.field private i:I

.field private j:I

.field private k:I

.field private l:I

.field private m:I

.field private n:Landroid/view/View;

.field private o:Landroid/view/ViewGroup;

.field private p:Landroid/view/WindowManager;

.field private q:Landroid/view/WindowManager$LayoutParams;

.field private r:I

.field private s:I

.field private t:I

.field private u:I

.field private v:Z

.field private w:I

.field private x:D

.field private y:Landroid/os/Vibrator;

.field private z:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 3

    const/16 v2, 0xf

    const/4 v0, 0x0

    invoke-direct {p0, p1}, Landroid/widget/GridView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->n:Landroid/view/View;

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->o:Landroid/view/ViewGroup;

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->p:Landroid/view/WindowManager;

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    const/4 v0, 0x4

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->s:I

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->v:Z

    const-wide v0, 0x3ff3333333333333L    # 1.2

    iput-wide v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->x:D

    iput v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->z:I

    iput v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->A:I

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->a(Landroid/content/Context;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 3

    const/16 v2, 0xf

    const/4 v0, 0x0

    invoke-direct {p0, p1, p2}, Landroid/widget/GridView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->n:Landroid/view/View;

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->o:Landroid/view/ViewGroup;

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->p:Landroid/view/WindowManager;

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    const/4 v0, 0x4

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->s:I

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->v:Z

    const-wide v0, 0x3ff3333333333333L    # 1.2

    iput-wide v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->x:D

    iput v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->z:I

    iput v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->A:I

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->a(Landroid/content/Context;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 3

    const/16 v2, 0xf

    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, p3}, Landroid/widget/GridView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->n:Landroid/view/View;

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->o:Landroid/view/ViewGroup;

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->p:Landroid/view/WindowManager;

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    const/4 v0, 0x4

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->s:I

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->v:Z

    const-wide v0, 0x3ff3333333333333L    # 1.2

    iput-wide v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->x:D

    iput v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->z:I

    iput v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->A:I

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->a(Landroid/content/Context;)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->k:I

    return v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->k:I

    return p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;Landroid/view/ViewGroup;)Landroid/view/ViewGroup;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->o:Landroid/view/ViewGroup;

    return-object p1
.end method

.method private a()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->n:Landroid/view/View;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->p:Landroid/view/WindowManager;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->n:Landroid/view/View;

    invoke-interface {v0, v1}, Landroid/view/WindowManager;->removeView(Landroid/view/View;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->n:Landroid/view/View;

    :cond_0
    return-void
.end method

.method private a(IIII)V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->n:Landroid/view/View;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    const v1, 0x3f19999a    # 0.6f

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->alpha:F

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->h:I

    sub-int v1, p3, v1

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->x:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->i:I

    sub-int v1, p4, v1

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->y:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->p:Landroid/view/WindowManager;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->n:Landroid/view/View;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    invoke-interface {v0, v1, v2}, Landroid/view/WindowManager;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->v:Z

    return p1
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->r:I

    return v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->l:I

    return p1
.end method

.method private b()V
    .locals 2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/a;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/a;->b(Z)V

    return-void
.end method

.method private b(II)V
    .locals 2

    invoke-virtual {p0, p1, p2}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->pointToPosition(II)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->j:I

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/a;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/a;->b(Z)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/a;->notifyDataSetChanged()V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->s:I

    return v0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->m:I

    return p1
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->u:I

    return v0
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->r:I

    return p1
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->u:I

    return p1
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;)Landroid/os/Vibrator;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->y:Landroid/os/Vibrator;

    return-object v0
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->t:I

    return p1
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->b()V

    return-void
.end method

.method static synthetic g(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->h:I

    return p1
.end method

.method static synthetic g(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->B:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic h(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->j:I

    return v0
.end method

.method static synthetic h(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->i:I

    return p1
.end method


# virtual methods
.method public a(FF)Landroid/view/animation/Animation;
    .locals 9

    const/4 v2, 0x0

    const/4 v1, 0x1

    new-instance v0, Landroid/view/animation/TranslateAnimation;

    move v3, v1

    move v4, p1

    move v5, v1

    move v6, v2

    move v7, v1

    move v8, p2

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    invoke-virtual {v0, v1}, Landroid/view/animation/TranslateAnimation;->setFillAfter(Z)V

    const-wide/16 v2, 0x12c

    invoke-virtual {v0, v2, v3}, Landroid/view/animation/TranslateAnimation;->setDuration(J)V

    return-object v0
.end method

.method public a(II)V
    .locals 9

    const/4 v1, 0x0

    const/high16 v6, 0x3f800000    # 1.0f

    const/4 v2, 0x0

    invoke-virtual {p0, p1, p2}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->pointToPosition(II)I

    move-result v3

    const/4 v0, 0x1

    if-lt v3, v0, :cond_0

    const/4 v0, -0x1

    if-eq v3, v0, :cond_0

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->g:I

    if-ne v3, v0, :cond_1

    :cond_0
    return-void

    :cond_1
    iput v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->j:I

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->g:I

    iget v4, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->k:I

    if-eq v0, v4, :cond_2

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->k:I

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->g:I

    :cond_2
    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->g:I

    iget v4, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->k:I

    if-eq v0, v4, :cond_3

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->g:I

    iget v4, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->j:I

    if-eq v0, v4, :cond_5

    :cond_3
    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->j:I

    iget v4, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->g:I

    sub-int/2addr v0, v4

    move v7, v0

    :goto_0
    if-eqz v7, :cond_0

    invoke-static {v7}, Ljava/lang/Math;->abs(I)I

    move-result v8

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->g:I

    if-eq v3, v0, :cond_0

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->g:I

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    const/4 v3, 0x4

    invoke-virtual {v0, v3}, Landroid/view/ViewGroup;->setVisibility(I)V

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->z:I

    int-to-float v0, v0

    iget v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->m:I

    int-to-float v3, v3

    div-float/2addr v0, v3

    add-float v5, v0, v6

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->A:I

    int-to-float v0, v0

    iget v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->l:I

    int-to-float v3, v3

    div-float/2addr v0, v3

    add-float v3, v0, v6

    const-string/jumbo v0, "x_vlaue"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v6, "x_vlaue = "

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v0, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    move v6, v1

    :goto_1
    if-ge v6, v8, :cond_0

    if-lez v7, :cond_8

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->g:I

    add-int/2addr v0, v6

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->w:I

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->g:I

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->s:I

    div-int/2addr v0, v1

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->w:I

    iget v4, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->s:I

    div-int/2addr v1, v4

    if-ne v0, v1, :cond_6

    neg-float v0, v5

    move v1, v2

    move v4, v0

    :goto_2
    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->w:I

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-virtual {p0, v4, v1}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->a(FF)Landroid/view/animation/Animation;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->startAnimation(Landroid/view/animation/Animation;)V

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->w:I

    iget v4, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->j:I

    if-ne v0, v4, :cond_4

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->B:Ljava/lang/String;

    :cond_4
    new-instance v0, Lcom/waiqin365/lightapp/dailyreport/view/c;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/dailyreport/view/c;-><init>(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;)V

    invoke-virtual {v1, v0}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    add-int/lit8 v0, v6, 0x1

    move v6, v0

    goto :goto_1

    :cond_5
    move v7, v1

    goto/16 :goto_0

    :cond_6
    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->w:I

    rem-int/lit8 v0, v0, 0x4

    if-nez v0, :cond_7

    const/high16 v0, 0x40400000    # 3.0f

    mul-float v1, v0, v5

    neg-float v0, v3

    move v4, v1

    move v1, v0

    goto :goto_2

    :cond_7
    neg-float v0, v5

    move v1, v2

    move v4, v0

    goto :goto_2

    :cond_8
    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->g:I

    sub-int/2addr v0, v6

    add-int/lit8 v0, v0, -0x1

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->w:I

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->g:I

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->s:I

    div-int/2addr v0, v1

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->w:I

    iget v4, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->s:I

    div-int/2addr v1, v4

    if-ne v0, v1, :cond_9

    move v1, v2

    move v4, v5

    goto :goto_2

    :cond_9
    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->w:I

    add-int/lit8 v0, v0, 0x1

    rem-int/lit8 v0, v0, 0x4

    if-nez v0, :cond_a

    const/high16 v0, -0x3fc00000    # -3.0f

    mul-float/2addr v0, v5

    move v1, v3

    move v4, v0

    goto :goto_2

    :cond_a
    move v1, v2

    move v4, v5

    goto :goto_2
.end method

.method public a(Landroid/content/Context;)V
    .locals 1

    const-string/jumbo v0, "vibrator"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/os/Vibrator;

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->y:Landroid/os/Vibrator;

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->z:I

    int-to-float v0, v0

    invoke-static {p1, v0}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->z:I

    return-void
.end method

.method public a(Landroid/graphics/Bitmap;II)V
    .locals 6

    invoke-direct {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->a()V

    new-instance v0, Landroid/view/WindowManager$LayoutParams;

    invoke-direct {v0}, Landroid/view/WindowManager$LayoutParams;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    const/16 v1, 0x33

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->gravity:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->h:I

    sub-int v1, p2, v1

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->x:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->i:I

    sub-int v1, p3, v1

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->y:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    iget-wide v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->x:D

    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v1

    int-to-double v4, v1

    mul-double/2addr v2, v4

    double-to-int v1, v2

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->width:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    iget-wide v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->x:D

    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v1

    int-to-double v4, v1

    mul-double/2addr v2, v4

    double-to-int v1, v2

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->height:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    const/16 v1, 0x198

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    const/4 v1, -0x3

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->format:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    const/4 v1, 0x0

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

    new-instance v1, Landroid/widget/ImageView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {v1, v0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, p1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string/jumbo v2, "window"

    invoke-virtual {v0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->p:Landroid/view/WindowManager;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->p:Landroid/view/WindowManager;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->q:Landroid/view/WindowManager$LayoutParams;

    invoke-interface {v0, v1, v2}, Landroid/view/WindowManager;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    iput-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->n:Landroid/view/View;

    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->a:I

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->b:I

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->c:I

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->d:I

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->setOnItemClickListener(Landroid/view/MotionEvent;)V

    :cond_0
    invoke-super {p0, p1}, Landroid/widget/GridView;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    return v0
.end method

.method public onMeasure(II)V
    .locals 2

    const v0, 0x1fffffff

    const/high16 v1, -0x80000000

    invoke-static {v0, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v0

    invoke-super {p0, p1, v0}, Landroid/widget/GridView;->onMeasure(II)V

    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 5

    const/4 v4, -0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->n:Landroid/view/View;

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->g:I

    if-eq v0, v4, :cond_0

    invoke-super {p0, p1}, Landroid/widget/GridView;->onTouchEvent(Landroid/view/MotionEvent;)Z

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    float-to-int v0, v0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    float-to-int v1, v1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v2

    packed-switch v2, :pswitch_data_0

    :cond_0
    :goto_0
    invoke-super {p0, p1}, Landroid/widget/GridView;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    return v0

    :pswitch_0
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->a:I

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->c:I

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->b:I

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->d:I

    goto :goto_0

    :pswitch_1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v2

    float-to-int v2, v2

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v3

    float-to-int v3, v3

    invoke-direct {p0, v0, v1, v2, v3}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->a(IIII)V

    iget-boolean v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->v:Z

    if-nez v2, :cond_1

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->a(II)V

    :cond_1
    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->pointToPosition(II)I

    move-result v0

    if-eq v0, v4, :cond_0

    goto :goto_0

    :pswitch_2
    invoke-direct {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->a()V

    invoke-direct {p0, v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->b(II)V

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->requestDisallowInterceptTouchEvent(Z)V

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_1
    .end packed-switch
.end method

.method public setOnItemClickListener(Landroid/view/MotionEvent;)V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/dailyreport/view/b;

    invoke-direct {v0, p0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/b;-><init>(Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;Landroid/view/MotionEvent;)V

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/dailyreport/view/ChanelGridView;->setOnItemLongClickListener(Landroid/widget/AdapterView$OnItemLongClickListener;)V

    return-void
.end method
